package com.app.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.io.File;
import java.io.IOException;
import java.util.Properties;

//@Configuration
public class Settings {
//    static Properties prop;
//    @Value("${spring.app-settings.rootsDir}")
    public static String rootsDir = "D:/bbyCloudDisk/roots";
    public static String usersDir = "D:/bbyCloudDisk/users";
    public static String tempFilesDir = "D:/bbyCloudDisk/tempFiles";
    public static long initialStorage = 10240;
    public static long cookie_alive_second=1200;
    public static long captcha_alive_second=300;
    public static int captchaHigh=100, captchaWidth=200, captchaValidSeconds=60;
    static {
        new File(rootsDir).mkdirs();
        new File(usersDir).mkdirs();
        new File(tempFilesDir).mkdirs();
    }
}
